.class public Lcom/waiqin365/lightapp/order/b/a/j;
.super Lcom/waiqin365/lightapp/order/b/c;


# direct methods
.method public constructor <init>(Ljava/lang/String;Lcom/waiqin365/lightapp/order/c/a;Ljava/lang/String;Ljava/lang/String;)V
    .locals 16

    const/16 v2, 0x3f0

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/waiqin365/lightapp/order/b/c;-><init>(I)V

    const-string/jumbo v2, "/app/order/client/v2/saveOrder.action"

    move-object/from16 v0, p0

    iput-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->c:Ljava/lang/String;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->e:Ljava/util/HashMap;

    const-string/jumbo v3, "Content-Type"

    const-string/jumbo v4, "application/x-www-form-urlencoded"

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :try_start_0
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->e:Ljava/util/HashMap;

    const-string/jumbo v3, "auth-code"

    move-object/from16 v0, p1

    invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    :goto_0
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.id"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->a:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.modify_time_str"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->ab:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.cm_id"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->h:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.storehouse"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->V:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.visit_implement_id"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->b:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.dealer"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->z:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.location_c"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->m:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.location_a"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->n:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.location_type"

    invoke-static/range {p3 .. p3}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.pictures"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->o:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.submit_date"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->g:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.consignment_date"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->y:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.order_remark"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->v:Ljava/lang/String;

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.order_amount"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p2

    iget-wide v6, v0, Lcom/waiqin365/lightapp/order/c/a;->k:D

    invoke-virtual {v4, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.discount_amount"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p2

    iget-wide v6, v0, Lcom/waiqin365/lightapp/order/c/a;->x:D

    invoke-virtual {v4, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/fiberhome/gaea/client/d/k;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v6, Lorg/json/JSONArray;

    invoke-direct {v6}, Lorg/json/JSONArray;-><init>()V

    const/4 v2, 0x0

    move v3, v2

    :goto_1
    move-object/from16 v0, p2

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/c/a;->D:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v3, v2, :cond_5

    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V

    move-object/from16 v0, p2

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/c/a;->D:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/lightapp/product/d/d;

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v4

    invoke-static {v4}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v4

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->b()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/waiqin365/base/db/offlinedata/w;->f(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v5

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v4

    invoke-static {v4}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v4

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->h()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v4, v8}, Lcom/waiqin365/base/db/offlinedata/w;->e(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v8

    :try_start_1
    const-string/jumbo v4, "id"

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->b()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v4, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "price"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->f()Ljava/lang/Double;

    move-result-object v10

    const-wide/16 v12, 0x0

    invoke-static {v10, v12, v13}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    invoke-virtual {v9, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string/jumbo v10, ""

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v4, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "order_count"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->g()Ljava/lang/Double;

    move-result-object v10

    const-wide/16 v12, 0x0

    invoke-static {v10, v12, v13}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    invoke-virtual {v9, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string/jumbo v10, ""

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v4, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "order_amount"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->g()Ljava/lang/Double;

    move-result-object v10

    const-wide/16 v12, 0x0

    invoke-static {v10, v12, v13}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->f()Ljava/lang/Double;

    move-result-object v12

    const-wide/16 v14, 0x0

    invoke-static {v12, v14, v15}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v12

    mul-double/2addr v10, v12

    invoke-virtual {v9, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string/jumbo v10, ""

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v4, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v9, "remarks"

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->e()Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_0

    const-string/jumbo v4, ""

    :goto_2
    invoke-virtual {v7, v9, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v9, "input_unit"

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->h()Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_1

    const-string/jumbo v4, ""

    :goto_3
    invoke-virtual {v7, v9, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v9, "base_unit"

    if-nez v5, :cond_2

    const-string/jumbo v4, ""

    :goto_4
    invoke-virtual {v7, v9, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v9, "base_unit_order_count"

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->g()Ljava/lang/Double;

    move-result-object v4

    const-wide/16 v10, 0x0

    invoke-static {v4, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    if-nez v8, :cond_3

    const-wide/high16 v4, 0x3ff0000000000000L    # 1.0

    :goto_5
    mul-double/2addr v4, v10

    invoke-virtual {v7, v9, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v9, "base_unit_confirm_count"

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->g()Ljava/lang/Double;

    move-result-object v2

    const-wide/16 v4, 0x0

    invoke-static {v2, v4, v5}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    if-nez v8, :cond_4

    const-wide/high16 v4, 0x3ff0000000000000L    # 1.0

    :goto_6
    mul-double/2addr v4, v10

    invoke-virtual {v7, v9, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    :goto_7
    invoke-virtual {v6, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto/16 :goto_1

    :cond_0
    :try_start_2
    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->e()Ljava/lang/String;

    move-result-object v4

    goto :goto_2

    :cond_1
    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/d;->h()Ljava/lang/String;

    move-result-object v4

    const-string/jumbo v10, "default"

    const-string/jumbo v11, ""

    invoke-virtual {v4, v10, v11}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    goto :goto_3

    :cond_2
    invoke-virtual {v5}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v4

    const-string/jumbo v5, "default"

    const-string/jumbo v10, ""

    invoke-virtual {v4, v5, v10}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    goto :goto_4

    :cond_3
    invoke-virtual {v8}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v4

    const-wide/high16 v12, 0x3ff0000000000000L    # 1.0

    invoke-static {v4, v12, v13}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v4

    goto :goto_5

    :cond_4
    invoke-virtual {v8}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v2

    const-wide/high16 v4, 0x3ff0000000000000L    # 1.0

    invoke-static {v2, v4, v5}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0

    move-result-wide v4

    goto :goto_6

    :catch_0
    move-exception v2

    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_7

    :cond_5
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.products"

    invoke-virtual {v6}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v7, Lorg/json/JSONArray;

    invoke-direct {v7}, Lorg/json/JSONArray;-><init>()V

    const/4 v2, 0x0

    move v4, v2

    :goto_8
    move-object/from16 v0, p2

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/c/a;->F:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v4, v2, :cond_8

    new-instance v8, Lorg/json/JSONObject;

    invoke-direct {v8}, Lorg/json/JSONObject;-><init>()V

    move-object/from16 v0, p2

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/c/a;->F:Ljava/util/List;

    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/lightapp/product/d/b;

    :try_start_3
    const-string/jumbo v3, "promotion_id"

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/b;->a()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v8, v3, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v3, "num"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v6, v2, Lcom/waiqin365/lightapp/product/d/b;->b:Ljava/lang/Double;

    const-wide/16 v10, 0x0

    invoke-static {v6, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    invoke-virtual {v5, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v8, v3, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v3, "price"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/b;->e()Ljava/lang/Double;

    move-result-object v6

    const-wide/16 v10, 0x0

    invoke-static {v6, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    invoke-virtual {v5, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v8, v3, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v3, "amount"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/d/b;->e()Ljava/lang/Double;

    move-result-object v6

    const-wide/16 v10, 0x0

    invoke-static {v6, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    iget-object v6, v2, Lcom/waiqin365/lightapp/product/d/b;->b:Ljava/lang/Double;

    const-wide/16 v12, 0x0

    invoke-static {v6, v12, v13}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v12

    mul-double/2addr v10, v12

    invoke-virtual {v5, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v8, v3, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    new-instance v9, Lorg/json/JSONArray;

    invoke-direct {v9}, Lorg/json/JSONArray;-><init>()V

    const/4 v3, 0x0

    move v6, v3

    :goto_9
    iget-object v3, v2, Lcom/waiqin365/lightapp/product/d/b;->a:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-ge v6, v3, :cond_7

    new-instance v10, Lorg/json/JSONObject;

    invoke-direct {v10}, Lorg/json/JSONObject;-><init>()V

    iget-object v3, v2, Lcom/waiqin365/lightapp/product/d/b;->a:Ljava/util/List;

    invoke-interface {v3, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/waiqin365/lightapp/product/d/a;

    const-string/jumbo v5, "id"

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/a;->b()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v5, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v5, "price"

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/a;->d()Ljava/lang/Double;

    move-result-object v12

    const-wide/16 v14, 0x0

    invoke-static {v12, v14, v15}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v12

    invoke-virtual {v11, v12, v13}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string/jumbo v12, ""

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v5, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v11, "is_gift"

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/a;->e()Ljava/lang/Boolean;

    move-result-object v5

    if-eqz v5, :cond_6

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/a;->e()Ljava/lang/Boolean;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v5

    if-eqz v5, :cond_6

    const-string/jumbo v5, "1"

    :goto_a
    invoke-virtual {v10, v11, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v5, "num"

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/a;->f()Ljava/lang/Double;

    move-result-object v12

    const-wide/16 v14, 0x0

    invoke-static {v12, v14, v15}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v12

    invoke-virtual {v11, v12, v13}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string/jumbo v12, ""

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v5, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v5, "input_unit"

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/d/a;->g()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v10, v5, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v9, v10}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v3, v6, 0x1

    move v6, v3

    goto/16 :goto_9

    :cond_6
    const-string/jumbo v5, "0"

    goto :goto_a

    :cond_7
    const-string/jumbo v2, "products"

    invoke-virtual {v9}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v8, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    :goto_b
    invoke-virtual {v7, v8}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v2, v4, 0x1

    move v4, v2

    goto/16 :goto_8

    :catch_1
    move-exception v2

    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_b

    :cond_8
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.promotions"

    invoke-virtual {v7}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.locate_lie"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->G:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.is_escape_phone"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->H:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.cellid"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->I:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.mcc"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->J:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.mnc"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->K:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.lac"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->L:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.radioType"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->M:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.os"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->N:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.phoneModel"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->O:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.province"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->P:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.city"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->Q:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.area"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->R:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.street"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->S:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.city_code"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->T:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.poi"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->U:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.token"

    move-object/from16 v0, p4

    invoke-virtual {v2, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.receive_name"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->Z:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.receive_phone"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->X:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.receive_tel"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->Y:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    const-string/jumbo v3, "data.receive_addr"

    move-object/from16 v0, p2

    iget-object v4, v0, Lcom/waiqin365/lightapp/order/c/a;->aa:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/j;->d:Ljava/util/HashMap;

    move-object/from16 v0, p2

    iget-object v3, v0, Lcom/waiqin365/lightapp/order/c/a;->ac:Ljava/util/HashMap;

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    return-void

    :catch_2
    move-exception v2

    goto/16 :goto_0
.end method
